package com.bluewap.core;

public class StaticVar {
	public static String TRANSID = "transactionId";
	public static String RETURNURL = "redirectUrl";
	// Final error range
	public static final int ERROR_CHARGE_OK = 0;
	public static final int ERROR_MSISDN_FAIL = 10;
	// CP error range
	public static final int ERROR_CP_SUSPENDED = 20;
	public static final int ERROR_CP_NOT_FOUND = 21;
	public static final int ERROR_PARAM_DECRYPT_ERROR = 22;
	public static final int ERROR_PARAM_DECRYPT_MISSING = 23;
	public static final int ERROR_NO_TOKEN = 24;
	public static final int ERROR_CP_AUTHENTICATE_ERROR = 25;
	public static final int ERROR_TRANSACTION_EXIST = 26;
	public static final int ERROR_TRANSACTION_NOT_EXIST = 27;

	// Telco error range
	public static final int ERROR_OP_ENCRYPT_FAIL = 30;
	public static final int ERROR_OP_SESSION_FAIL = 31;	
	// Subscriber error range
	public static final int ERROR_PENDING = 40;
	public static final int ERROR_CHARGE_FAILED = 41;
	public static final int ERROR_CHARGE_CANCEL = 42;
	public static final int ERROR_CHARGE_FRAUD = 43;
	// System error range
	public static final int ERROR_INTERNAL_ERROR = 50;
	// Request error range
	public static final int ERROR_ORDERED = 1;
	public static final int ERROR_PARAM_MISSING = 99;
	public static final int ERROR_RETURNURL_FAIL = 100;
	
	// DB col name
	public static final String DB_CP_STATUS = "STATUS";
	public static final String DB_CP_AESKEY = "AESKEY";
	public static final String DB_CHECKOUT_ID = "ID";
	public static final String DB_CHECKOUT_MSISDN = "MSISDN";
	public static final String DB_CHECKOUT_TOKEN = "TOKEN";
	public static final String DB_CHECKOUT_RETURNURL = "RETURN_URL";
	public static final String DB_CHECKOUT_CONTENTID = "CONTENT_ID";
	public static final String DB_CHECKOUT_CONTENTTYPE = "CONTENT_TYPE";
	public static final String DB_CHECKOUT_CONTENTPRICE = "CONTENT_PRICE";
	public static final String DB_CHECKOUT_CONTENTNAME = "CONTENT_NAME";
	public static final String DB_CHECKOUT_STATUS = "STATUS";
	
}
